<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace Core\Entity;

use Doctrine\ORM\Mapping as ORM;

/** @ORM\Entity */
class SubCategories {

    /**
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     * @ORM\Column(type="integer")
     */
    protected $id;

    /** @ORM\Column(type="string") */
    protected $name;
    
    
    /**
     * @var Categories|null the group this user belongs (if any)
     * @ORM\ManyToOne(targetEntity="Core\Entity\Categories", inversedBy="subcategories")
     * @ORM\JoinColumn(name="categoryId", referencedColumnName="id")
     */
    protected $categoryId;

    function getId() {
        return $this->id;
    }

    function getName() {
        return $this->name;
    }

    function setId($id) {
        $this->id = $id;
    }

    function setName($name) {
        $this->name = $name;
    }

    function getCategoryId() {
        return $this->categoryId;
    }

    function setCategoryId(Categories $categoryId) {
        $this->categoryId = $categoryId;
    }




    
}
